package net.yangyy.os.user.api;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import net.yangyy.os.common.resp.ResultData;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhaox 2021/7/14
 * @version 1.0.0
 */
@RestController
public class AccountApi extends BaseApi{

    @RequestMapping("testApi")
    @SentinelResource(value = "testApi",blockHandler = "sentinelException")
    public ResultData test(){
        return ResultData.success("操作成功");
    }
}
